
<h1><span class="yiyi-st" id="yiyi-13">numpy.ma.MaskedArray.diagonal</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.MaskedArray.diagonal.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.ma.MaskedArray.diagonal.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="method">
<dt id="numpy.ma.MaskedArray.diagonal"><span class="yiyi-st" id="yiyi-14"> <code class="descclassname">MaskedArray.</code><code class="descname">diagonal</code><span class="sig-paren">(</span><em>offset=0</em>, <em>axis1=0</em>, <em>axis2=1</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/numpy/numpy/blob/v1.11.3/numpy/ma/core.py#L2548-L2561"><span class="viewcode-link">[source]</span></a></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-15">返回指定的对角线。</span><span class="yiyi-st" id="yiyi-16">在NumPy 1.9中，返回的数组是一个只读视图，而不是像以前的NumPy版本一样的副本。</span><span class="yiyi-st" id="yiyi-17">在将来的版本中，只读限制将被删除。</span></p>
<p><span class="yiyi-st" id="yiyi-18">有关完整文档，请参阅<a class="reference internal" href="numpy.diagonal.html#numpy.diagonal" title="numpy.diagonal"><code class="xref py py-func docutils literal"><span class="pre">numpy.diagonal</span></code></a>。</span></p>
<div class="admonition seealso">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-19">也可以看看</span></p>
<dl class="last docutils">
<dt><span class="yiyi-st" id="yiyi-20"><a class="reference internal" href="numpy.diagonal.html#numpy.diagonal" title="numpy.diagonal"><code class="xref py py-obj docutils literal"><span class="pre">numpy.diagonal</span></code></a></span></dt>
<dd><span class="yiyi-st" id="yiyi-21">等效函数</span></dd>
</dl>
</div>
</dd></dl>
